# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-pkgconfig
_realname=pkgconfig
pkgver=1.5.1
pkgrel=1
pkgdesc="Python interface for the pkg-config command line tool"
options="!check" # GitHub tarballs depend on unpackaged poetry build system
url="https://github.com/matze/pkgconfig"
arch="noarch"
license="MIT"
depends="python3 pkgconf"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_realname:0:1}/$_realname/$_realname-$pkgver.tar.gz"
builddir="$srcdir/$_realname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="1fd9aa973bd20a8fab864722598f1d19b94c23c7f2b522556b3182b19fe016bda7aa2be5e48a1b8fefa70a069611007d6d790e24defcb462e4594a382de85b00  pkgconfig-1.5.1.tar.gz"
